<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Canvas测试</title>
</head>
<body>
    <canvas width="200" height="80" id="myCanvas"></canvas>


    <div class="res">
        <input id="inputCode" type="text">
        <div width="300" height="80"  id="warnToast" style="background-color: aqua;"></div>
        <input id="btn" type="button" value="重绘">
    </div>
    <script src="./canvas.js"></script>
</body>
</html>